package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.dto.NursingPlanDto;
import com.zzyl.entity.NursingPlan;
import com.zzyl.entity.NursingPlanProject;
import com.zzyl.vo.NursingPlanVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface NursingPlanMapper {
    List<NursingPlanVo> getAll();

    void addPlan(NursingPlan nursingPlan);

    void addPlanProject(List<NursingPlanProject> PlanProjects);

    Page<NursingPlanVo> queryPage(String name, Integer status);
    

    NursingPlanVo getPlanByPlanId(Integer id);

    List<NursingPlanProject> getProjectPlansByPlanId(Integer id);

    void updatePlan(NursingPlan nursingPlanDto);



    void deleteNursingPorjectByPlanId(Long id);

    void deleteNursingPlanById(Integer id);

    void setStatus(@Param("id")Integer id,@Param("status") Integer status);
}
